package com.guoj.rabbitmq.utils;

/**
 * @author guoj
 * @date 2019/5/30
 * @description 常量
 */
public class Constant {

	// order交换机
    public static final String ORDER_EXCHANGE = "order-exchange";
	public static final String ORDER_EXCHANGE_ERROR = "order-exchange-error";
    // 是否持久化
	public static final String DURABLE = "true";
	// 消息模式
	public static final String MESSAGE_TYPE = "topic";
	// 是否声明忽略异常
	public static final String IGNORE_DECLARATION_EXCEPTIONS = "true";
    // order生产方绑定的routing-key
    public static final String ORDER_ROUTING = "order.abcd";
    // order队列
    public static final String ORDER_QUEUE = "order-queue";
	// order消费方的routingKey
    public static final String ORDER_CONSUMER_KEY = "order.*";

    public static final String ORDER_SENDING = "0"; // 正在发送
    public static final String ORDER_SEND_SUCCESS = "1"; // 发送成功
    public static final String ORDER_SEND_FAILURE = "2"; // 发送失败
    public static final int ORDER_TIMEOUT_MINUTES = 1; // 发送超时时间

}
